/*
 * Copyright 2002-2017 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.deservel.wxopen.model.message.base;

import com.deservel.wxopen.common.Annotation.XStreamCDATA;

/**
 * 所有消息基类
 *
 * @author DeserveL
 * @date 2017/7/4 11:11
 * @since 1.0.0
 */
public class BaseMessage {

    //开发者微信号
    @XStreamCDATA
    private String ToUserName;
    //发送方帐号（一个OpenID）
    @XStreamCDATA
    private String FromUserName;
    //消息创建时间 （整型）
    private long CreateTime;
    //消息类型
    @XStreamCDATA
    private String MsgType;

    public String getToUserName() {
        return ToUserName;
    }

    public void setToUserName(String toUserName) {
        ToUserName = toUserName;
    }

    public String getFromUserName() {
        return FromUserName;
    }

    public void setFromUserName(String fromUserName) {
        FromUserName = fromUserName;
    }

    public long getCreateTime() {
        return CreateTime;
    }

    public void setCreateTime(long createTime) {
        CreateTime = createTime;
    }

    public String getMsgType() {
        return MsgType;
    }

    public void setMsgType(String msgType) {
        MsgType = msgType;
    }
}
